#!/bin/bash

echo "~ Now config zsh"

# echo "
# plugins=( 
#   zsh-syntax-highlighting
#   zsh-autosuggestions
#   zsh-history-substring-search
# )
# " >> ~/.zshrc
sed -i 's/^plugins=(\(.*\))/plugins=(\1 zsh-syntax-highlighting)/' ~/.zshrc
sed -i 's/^plugins=(\(.*\))/plugins=(\1 zsh-autosuggestions)/' ~/.zshrc
sed -i 's/^plugins=(\(.*\))/plugins=(\1 zsh-history-substring-search)/' ~/.zshrc

# notice
sh add_to_shrc.sh ~/.zshrc

chsh -s /usr/bin/zsh
